<?php
namespace app\backend\controller;
use app\common\service\CaptchaService;
use app\common\RootController;

class NoStateCode extends Backend
{
    /**
     * 无状态验证码
     * @return \think\response\Json
     */
    public function imgCode(CaptchaService $service)
    {
        return $this->success($service->createImg());
    }
}